<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="description" content="google app engine blog"/>
<meta name="keywords" content="google app engine blog python linux opensource django"/> 
<meta name="author" content="fla.sam@gmail.com"/> 
<link rel="stylesheet" type="text/css" href="/static/blog/default.css" media="screen"/>
<script type="text/javascript" src="/static/blog/mootools.js"></script>
{% load gappblogtags %}
<title>Google App Engine Blog</title>
</head>
<body>
<div class="container">
    <div class="header">
        <div class="title">
            <h1>Google App Engine Blog</h1>
        </div>
        <!-- page navigation and header -->
        <div class="navigation">
            <a href="/" alt="Home">Home</a>
            <a href="/blog/" alt="Blog">Blog</a>
            <a href="/about/" alt="About">About</a>
            {% if is_logined %}<a href="{{ user_login_logout_url }}"alt="Logout">Welcome {{ user_name }}</a>{% endif %}
            <div class="clearer"><span></span></div>
        </div>
        <!-- page navigation and header end -->
    </div>
    <!-- main content -->
    <div class="main">
        <div class="content">
            
			{% for article in article_lists %}
			<h1><a href='/blog/article/{{ article.key }}/'>{{ article.article_title|escape }}</a></h1>
            <div class="descr">
			{{ article.article_submit_user|title }} post at {{ article.article_datetime|date:"Y-m-d H:i:s" }}&nbsp;&nbsp;
			{% if is_admin %}
				<a href="/blog/article/edit/{{ article.key }}/"><img src="/static/blog/img/edit_16.png"  WIDTH="16" HEIGHT="16" BORDER="0" ALT="Edit this article" ></a>&nbsp;&nbsp;<a href="/blog/article/del/{{ article.key }}/"><img src="/static/blog/img/delete_16.png"  WIDTH="16" HEIGHT="16" BORDER="0" ALT="Delete this article"></a>
			{% endif %}
			&nbsp;&nbsp;&nbsp;Rating:&nbsp;{{ article.article_rating }}%&nbsp;Hiting:&nbsp;{{ article.article_hit }}&nbsp;Tag:&nbsp;{{ article|get_article_tags }}
			</div>
            <p>{{ article.article_content|safe|truncatewords_html:3 }}</p>
			<p>&nbsp;</p>
			{% endfor %}
        </div>
        <!-- main content end -->
        <!-- side nav bar -->
        <div class="sidenav">
            <div class="marginbottom">
            <!-- Blog Recent-->
            <h1>Recent Update</h1>
            <ul>
            <li></li>
            </ul>
            <!-- Blog Recent end-->
			<!-- Top Hiting -->
            <h1>Week Top Hiting</h1>
            <ul>
            <li></li>
            </ul>
            <!-- Top Hiting end -->
			<!-- Top Rating -->
            <h1>Week Top Rating</h1>
            <ul>
            <li></li>
            </ul>
            <!-- Top Rating end -->

            <!-- Site login logout, admin port , RSS Subscribe -->
            <h1>Site</h1>
            <ul>
            <li><a href="#" alt="Subscribe RSS"><img src="/static/blog/img/rss_11.png" WIDTH="11" HEIGHT="11" BORDER="0" ALT="Subscribe RSS">&nbsp;Subscribe RSS&nbsp;</a></li>
            {% if is_admin %}
            <li><a href="/blog/article/add/" alt="Add Article"><img src="/static/blog/img/article_11.png" WIDTH="11" HEIGHT="11" BORDER="0">&nbsp;Add New Article</a></li>
            <li><a href="/blog/options/site/" alt="Admin Port"><img src="/static/blog/img/site_options_11.png" WIDTH="11" HEIGHT="11" BORDER="0" ALT="Login">&nbsp;Site Options</a></li>
            {% endif %}
            <li><a href="{{ user_login_logout_url }}" alt="Logout"><img src="/static/blog/img/user_11.png" WIDTH="11" HEIGHT="11" BORDER="0" ALT="Login">&nbsp;{{ user_login_logout_name}}</a></li>
            </ul>
            <!-- Site login logout, admin port , RSS Subscribe end -->

            <!-- Link -->
            <h1>Link</h1>
            <ul>
            {% if is_admin %}
			<script type="text/javascript" src="/static/blog/slidelink.js"></script>
            <li ><a href="#" alt="Add Link" id="h_link_toggle">Quick Add New URL</a></li>
			<!-- show add link slide -->
            <div id="vertical_link_slide">
			<form method="post" action="/blog/link/add/">
			  <table style="width: 100%" cellspacing="0" cellpadding="0" align="center">
		      <tr>
	          <td valign="top" class="tname">Name</td>
	           <td valign="top"><input name="name" type="text" class="styled"/></td>
	        </tr>
	        <tr>
			   <td valign="top" class="tname">URL</td>
			   <td valign="top"><input name="link" type="text" class="styled"/></td>
	        </tr>
	        <tr>
            <td>&nbsp;</td>
            <td valign="top">
            <input name="Submit" type="submit" value="submit" class="button"/></td>
		      </tr>
		   </table>
			</form>
			<a id="h_link_slideout" href="#">Close</a>
			</div>
			<!-- show add link slide end -->
			{% endif %}
            {% for x in link_lists %}
			<li><a href="{{ x.link_url }}">{{ x.link_name|escape  }}</a>
				{% if is_admin %}
				&nbsp;|&nbsp;[<a href='/blog/link/del/{{ x.key|urlencode }}/'>del link</a>&nbsp;&nbsp;&nbsp;]
				{% endif %}
			</li>
			{% endfor%}
            </ul>
            <!-- Link end -->

            <!-- Tag cloud -->
            <h1>Tag Cloud</h1>
            <!-- <h2><a href="#" id=t100>Linux</a></h2><h3><a href="#">OpenSource</a></h3> <a href="#">Ubuntu</a> <a href="#">Firefox</a> -->
			<ul>
			{% for tag in tag_lists %}
			<a href="/blog/tag/{{ tag.tag_name|urlencode }}" class="a{{ tag.random_rating }}">{{ tag.tag_name }}</a>
			{% endfor %}
			</ul>
            <!-- Tag cloud end -->

            <!-- Search -->
            <h1>Search</h1>
            <form action="/blog/search">
            
            </div>
            <div>
                <input type="text" name="search" class="styled" /> <input type="submit" value="submit" class="button" />
            </div>
            </form>
			<!-- Search end -->
        </div>
        <!-- side nav bar end -->
        <div class="clearer"><span></span></div>
    </div>
</div>
<!-- page footer -->
<div class="footer">© 2008 <a href="http://snote.appspot.com">SNote </a>Template design by <a href="http://arcsin.se">Arcsin </a>Powered by <a href="http://code.google.com/appengine/">Google App Engine</a>
<!-- page footer end -->
</body>
</html>